package worklog.dto;

import com.google.gson.Gson;


public class DayDTO {
	private String date;
	private Boolean isHoliday;
	private String holidayName;
	private EntryDTO[] rows;
	
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public Boolean getIsHoliday() {
		return isHoliday;
	}

	public void setIsHoliday(Boolean isHoliday) {
		this.isHoliday = isHoliday;
	}

	public String getHolidayName() {
		return holidayName;
	}

	public void setHolidayName(String holidayName) {
		this.holidayName = holidayName;
	}

	
	public void setRows(EntryDTO[] items) {
		this.rows = items;
	}

	public EntryDTO[] getRows() {
		return rows;
	}
	
	public EntryDTO getRow(int i) {
		return rows[i];
	}

	
	
	/**
	 * Return JSON
	 */
	public String toString(){
		return new Gson().toJson(this);
	}

}
